/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import com.util.FormUtil;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

/**
 *
 * @author Adell
 */
public class FrameLogin extends JFrame {

    private JLabel login;
    private JButton sekretariat, dosen;
    private JLabel gambar;
            
    public static void main(String[] args) {
        FrameLogin log = new FrameLogin();
    }

    public FrameLogin() {
        this.setTitle("FRAME LOGIN");
        this.setSize( 300, 200);
        FormUtil.centerWindow(this);
        this.setResizable(false);
        this.setLayout(null);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);

        login = new JLabel("FRAME LOGIN");
        login.setBounds(115, 5, 150, 50);
        this.add(login);

        sekretariat = new JButton("SEKRETARIAT");
        sekretariat.setBounds(20, 70, 130, 50);
        this.add(sekretariat);

        dosen = new JButton("DOSEN");
        dosen.setBounds(170, 70, 100, 50);
        this.add(dosen);

        dosen.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                LoginDosen ld = new LoginDosen();              
            }
        });
        
        sekretariat.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                FrameUtamaSekretariat fs = new FrameUtamaSekretariat();
            }
        });
    }
}
